public class demo15 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();

        System.out.println("before!");

        synchronized (object){
            object.notify();
        }


        System.out.println("After!");
    }
}
